import request from '@/utils/request'

const receivableList = {
    // 查询列表
    getList(query) {
        return request({
            url: '/com.mmk.reservation.api.AdminRepaymentProvider/1.0.0/listRepayments.html',
            method: 'post',
            data: query
        })
    },
    // 医院列表
    hospitalNameList(query) {
        return request({
            url: '/com.mmk.reservation.api.AdminHospitalProvider/1.0.0/hospitalDropDownWithPermission.html',
            method: 'post',
            data: query
        })
    },
    // 详情接口
    getDetails(query) {
        return request({
            url: '/com.mmk.reservation.api.AdminRepaymentProvider/1.0.0/getRepaymentDetail.html',
            method: 'post',
            data: query
        })
    },
    // 导出
    handleExport(query) {
        return request({
            url: '/exportRepayment',
            method: 'post',
            data: query,
            responseType: 'blob'
        })
    },
    // 导出
    newHandleExport(query) {
        return request({
            url: '/com.mmk.reservation.api.AdminRepaymentProvider/1.0.0/exportRepayment.html',
            method: 'post',
            data: query,
            responseType: 'blob'
        })
    }
}


export default receivableList
